<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">
             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
 
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Dushujie/updushujie')}">节目上报</a></li>
            <li><a href="{:U('Dushujie/viewDushujie')}">浏览节目单</a></li>
            <li><a href="{:U('Dushujie/sortDushujie','id='.$vo['id'])}" >节目排序</a><li>
        </ul>
	<!-- 标题栏 -->
    <div class="right_box">	
     <legend><span style="color:#CC4444">节目上报</span></legend>
     
 <form method='post' id="form" class="form-horizontal form-condensed" name="formdushuji" action="" > 
<div class="form-group">
<label class="col-sm-2 control-lable text-right" for="class"> 班　　级：</label>
<div class="col-sm-3">
  <select name="class" id="class" class="form-control" >
   <option value="" > 请选择班级</option>
   <volist name="classlist" id="vo"  >  
         <option value={$vo.bj_name} > {$vo.bj_name}</option>
       </volist>
   </select>       
 </div>
 <label class="col-sm-2 control-lable text-right">班 主 任 ：</label>
   <div class="col-sm-3">
     <input class="form-control" type="text"  name="teacher" value="" placeholder="请输入姓名"/>    
   </div>
        </div>

        <div class="form-group">
        <label class="col-sm-2 control-lable text-right">表演形式：</label> 
          <div class="col-sm-3">
          <select name="xingshi" id="xingshi" class="form-control" >
           <option > 情景诵读</option>
           <option > 课本剧</option>
           <option > 吟诵</option>
           <option > 其他</option>
         </select>
         </div>

         <label class="col-sm-2 control-lable text-right">节目时长：</label> 
         <div class="col-sm-3">
         <input class="form-control" type="text" name="show_time" value="" placeholder="请输入(估计大致时间)" />    
         </div>
        </div>

        <div class="form-group"> 
          <label class="col-sm-2 control-lable text-right">节目名称：</label> 
          <div class="col-sm-8">
          <input class="form-control form-lg" type="text"  name="title" value="" placeholder="请输入节目名称">    
         </div>
        </div>

          <div class="form-group">
            <label class="col-sm-5 "><span class="check-tips">解说词：
            （ 填写完成后，点击确定按钮保存 ）</span></label>
            <div class="col-sm-offset-1 col-sm-9" >
               <textarea name="abstract" class="form-control" rows="10"> </textarea>              
            </div>
            </div>

         <div class="form-group">
           <div class="col-sm-offset-2 col-sm-10 form-actions"> 
             <button type="submit" class="btn btn-primary">确定上报</button>
             <button type="button" class="btn btn-danger">取消</button>  
             </div>
        </div>
        </form> 


      
  <legend><span style="color:#CC4444">最近上报的节目</span></legend>
      <!-- 数据列表start -->
          <div class="data-table">
           <table class="table data-table table-striped">
           <thead>
           <tr class="info">       
               <th class="">序号</th>    
               <th class="">班级</th>
               <th class="">班主任</th>
               <th class="">节目名称</th>
               <th class="">节目时长</th>   
               <!-- <th class="">解说词</th> -->
               <th class="">更新时间</th>     
               <th class="">操  作</th>
           </tr>
           </thead>
   <tbody>
   <notempty name="list">
       <volist name="list" id="vo">
       <tr>
        <td>{$vo.id} </td>
        <td>{$vo.class}</td>
        <td>{$vo.headteacher}</td>
        <td>{$vo.title}</td>
        <td>{$vo.show_time}</td>
        <!-- <td>{$vo.abstract|msubstr=0,20,'utf-8',true}</td> -->      
        <td><span>{$vo.update_time|date='Y-m-d H:i:s',###}</span></td>  
        <td>
            <a href="{:U('Dushujie/editDushujie','id='.$vo['id'])}" >编　辑</a> |
            <a href="{:U('Dushujie/deleteDushujie?id='.$vo['id'])}" class="authorize">删　除</a>  
            </td>
               </tr>
               </volist>
               <else/>
               <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
               </notempty>
           </tbody>
           </table>
          </div>
<!-- 数据列表end --> 
        </div>          
     </div>   
</block>

